package com.amway.qy.resource.result;

public class BaseResult {
	protected static final Long SuccessCode = Long.valueOf(0);
	
	protected Long errcode;
	protected String errmsg;

	public boolean isSuccess(){
		return errcode == SuccessCode;
	}
	
	public long getErrcode() {
		return errcode;
	}
	public void setErrcode(long errcode) {
		this.errcode = errcode;
	}
	public String getErrmsg() {
		return errmsg;
	}
	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}
	@Override
	public String toString() {
		return "BaseResult [errcode=" + errcode + ", errmsg=" + errmsg + "]";
	}
	
}
